package com.yunhe.authority.domain.wechat;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.neo4j.ogm.annotation.GeneratedValue;
import org.neo4j.ogm.annotation.Id;
import org.neo4j.ogm.annotation.NodeEntity;
import org.neo4j.ogm.annotation.Property;

/**
 * @author zhengbo
 * @date 2021/9/8 17:22
 */

@ApiModel(value = "WechatLoginRecord", description = "微信小程序登录记录")
@NodeEntity
@Data
public class WechatLoginRecord {

    @Id
    @GeneratedValue
    @ApiModelProperty(value = "ID")
    @Property(name = "id")
    private Long id;

    @ApiModelProperty(value = "用户id")
    @Property(name = "userId")
    private Long userId;

    @ApiModelProperty(value = "用户手机号")
    @Property(name = "userPhone")
    private String userPhone;

    @ApiModelProperty(value = "用户头像")
    @Property(name = "userPhoto")
    private String userPhoto;

    @ApiModelProperty(value = "微信openid")
    @Property(name = "openid")
    private String openid;

    @ApiModelProperty(value = "微信unionid")
    @Property(name = "unionid")
    private String unionid;

    @ApiModelProperty(value = "上次登录真实园区id")
    @Property(name = "lastLoginRealStationId")
    private Long lastLoginRealStationId;

    @ApiModelProperty(value = "上次登录虚拟园区id")
    @Property(name = "lastLoginStationId")
    private Long lastLoginStationId;

    @ApiModelProperty(value = "上次登录企业id")
    @Property(name = "lastLoginCompanyId")
    private Long lastLoginCompanyId;

    @ApiModelProperty(value = "上次登录时间")
    @Property(name = "lastLoginTime")
    private String lastLoginTime;
}
